package day0804;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

/**
 * @author 杰哥不要啦~
 * @date 2021/8/4
 */
public class Test03 {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入账号");
        String username = sc.next();
        System.out.println("请输入密码");
        String password = sc.next();

        FileWriter fw = new FileWriter("a.txt");
            fw.write(username);
            fw.write(System.lineSeparator());
            fw.write(password);
            fw.close();
    }

}
